pkgname=tlbflush
pkgver=1
pkgrel=1
url='https://gitee.com/saeran123/tlbflush.git'
arch=('i386' 'x86_64')
license=('GPL')
source=("https://gitee.com/saeran123/tlbflush.git")
md5sums=('SKIP')

build()
{
	cd "$srcdir/tlbflush"
	gcc -DFILE_SIZE=$((128*1048576)) -g -O2 "${pkgname}.c" -lpthread -o "${pkgname}"
}

package()
{
	benchmark_path="${pkgdir}/lkp/benchmarks/${pkgname}"
	mkdir -p "$benchmark_path"
	cp -af "$srcdir/${pkgname}" "$benchmark_path"
}
